package com.mycommune.service;

import java.util.List;

import javax.persistence.EntityManager;
import javax.persistence.Query;

import com.mycommune.persistence.EntityManagerFactoryImpl;
import com.mycommune.persistence.TabHeaders;

public class MyCommuneServiceImpl implements MyCommuneService {
	@Override
	public List<TabHeaders> getTabHeaders() {
		EntityManager em = EntityManagerFactoryImpl.get().createEntityManager();
		Query query = em.createQuery("SELECT e FROM com.mycommune.persistence.TabHeaders e");
		return query.getResultList();
	}
}
